<ul id="models-list">
    <li class="add">
        <div><a href="javascript:BrandAdd()">+dodaj</a></div>
    </li>
<? foreach($data as $id=>$name): ?>
    <li>
        <? $img = Inflector::slug(strtolower($name), '_') . ".png" ?>
        
        <div class="image"><?= $this->Html->image("brands/{$img}", array(
            'url' => '/models/index/' . $id
        )) ?></div>
        <?= $this->Html->link($name, '/models/index/' . $id) ?>
    </li>
<? endforeach ?>
</ul>